package com.bettem.modules.tourism.controller.app;

import com.bettem.common.utils.PageUtils;
import com.bettem.common.utils.R;
import com.bettem.modules.tourism.entity.TourismProductHomeImgEntity;
import com.bettem.modules.tourism.entity.TourismProductPicEntity;
import com.bettem.modules.tourism.entity.VO.TourismProductInfoVO;
import com.bettem.modules.tourism.service.TourismProductHomeImgService;
import com.bettem.modules.tourism.service.TourismProductInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 *  手机端旅游产品首页轮播图
 *
 * @author 颜金星
 * @email sunlightcs@gmail.com
 * @date 2019-07-20 16:24:27
 */
@RestController
@RequestMapping("/app/tourism/productHomeImg/")
public class AppTourismProductHomeImgController {

    @Autowired
    private TourismProductHomeImgService tourismProductHomeImgService;

    /**
     * @Param [params]
     * @Return: R
     * @Decription: 查询首页轮播图最新7条数据
     * @CreateDate: 2019-07-20 16:24:27
     * @Author: 颜金星
     */
    @RequestMapping(value = "getList",method = RequestMethod.GET)
    public R getList(@RequestParam Map<String, Object> params){
        List<TourismProductHomeImgEntity> list=tourismProductHomeImgService.getHomeImgList(7);
        return R.ok(list);
    }
}
